/* AI Integration Styles */
.ai-settings-section {
  margin-top: 15px;
  margin-bottom: 15px;
}

.ai-spoiler {
  cursor: pointer;
  padding: 12px 15px;
  background: #f5f5f5;
  border: 1px solid #efefef;
  border-radius: 3px;
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  user-select: none;
  position: relative;
}

.ai-spoiler:hover {
  background: #eeeeee;
}

.ai-spoiler::after {
  content: '▼';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: #666666;
}

.ai-spoiler.collapsed::after {
  transform: translateY(-50%) rotate(-90deg);
}

.ai-content {
  display: block;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border: 1px solid #efefef;
  border-top: none;
  border-radius: 0 0 3px 3px;
  background: white;
}

.ai-content.collapsed {
  display: none;
}

.ai-iframe-container {
  position: relative;
  background: white;
  height: 500px;
}

.ai-iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.ai-iframe.hidden {
  display: none;
}

.ai-iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ai-iframe-overlay.loading {
  display: flex;
}

.ai-loading-text {
  font-size: 14px;
  color: #666666;
}

.ai-controls {
  padding: 10px 15px;
  background: #f9f9f9;
  border-top: 1px solid #efefef;
  text-align: right;
}

.ai-btn {
  display: inline-block;
  padding: 6px 12px;
  margin-left: 8px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  background: white;
  color: #333333;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ai-btn:hover {
  background: #f5f5f5;
  border-color: #aaaaaa;
}

.ai-btn.primary {
  background: #3d4a6b;
  color: white;
  border-color: #3d4a6b;
}

.ai-btn.primary:hover {
  background: #2e3b54;
  border-color: #2e3b54;
}

.ai-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-btn:disabled:hover {
  background: white;
  border-color: #cccccc;
}

.ai-btn.primary:disabled:hover {
  background: #3d4a6b;
  border-color: #3d4a6b;
}
